package com.hefei.genericity;

import java.util.ArrayList;
import java.util.List;

/**
 * @author caizhengjun
 * @date 2020/9/4 11:53 上午
 */
public class Demo01 {
    public static void main(String[] args) {

        //一个被举了无数次的例子
        List<String> arrayList = new ArrayList<>();
        arrayList.add("aaaa");
        //arrayList.add(100);

        for (String s : arrayList) {
            System.out.println("item = " + s);
        }
    }
}
